home *** CD-ROM | disk | FTP | other *** search
/ Champak 66 / Vol 66.iso / games / bob_espo.swf / scripts / __Packages / DynamicPack.as < prev    next >
Text File  |  2013-04-24  |  744b  |  32 lines

  1. class DynamicPack extends State
  2. {
  3.    static var sSTATE_ENTER = "Enter";
  4.    static var sSTATE_IDLE = "Idle";
  5.    function DynamicPack(_mcRef, _sInitState, _sStartDynamic)
  6.    {
  7.       super(_mcRef);
  8.       this.setState(_sInitState);
  9.       if(_sInitState == DynamicPack.sSTATE_IDLE)
  10.       {
  11.          this.oPanel = new ScrollingPanel(this.mcRef.mcState);
  12.          this.oPanel.setState(_sStartDynamic);
  13.       }
  14.    }
  15.    function cleanUp()
  16.    {
  17.       super.cleanUp();
  18.       this.oPanel.cleanUp();
  19.    }
  20.    function Enter()
  21.    {
  22.       if(this.stateFinished())
  23.       {
  24.          this.setState(DynamicPack.sSTATE_IDLE);
  25.          this.oPanel = new ScrollingPanel(this.mcRef.mcState);
  26.       }
  27.    }
  28.    function Idle()
  29.    {
  30.    }
  31. }
  32.